package com.yjs.app.trade.service.mapper.business.contract;

import java.util.List;
import java.util.Map;

import com.yjs.app.trade.core.base.mybatis.annotation.MyBatisRepository;
import com.yjs.app.trade.entity.bean.ContractInfo;

/**
 * 合同相关的dao层接口
 * 
 * @author Administrator
 *
 */
@MyBatisRepository
public interface ContractMapper {

	/**
	 * 查询药品合同详情
	 * 
	 * @param contractId
	 * @return
	 */
	public ContractInfo findContractInfoById(String contractId);

	/**
	 * 器械合同详情
	 * 
	 * @param contractId
	 * @return
	 */
	public ContractInfo findContractApparInfoById(String contractId);

	/**
	 * 查询合同总记录数
	 * 
	 * @param searchMap
	 * @return
	 */
	public Long findContractTotalRecordNum(Map<String, String> searchMap);

	/**
	 * 根据id查询合同类型
	 * 
	 * @param list
	 * @return
	 */
	public List<Map<String,Object>> findContractTypeByContractId(List<String> list);
}
